package mg.utils

/**
  *
  * @author eureka.wh
  * @since 2019-05-28 15:13
  */
object Humidity extends App {

   def y = 100

   // =()里面只能有一条语句
//   def x(y:String) = (
//     println("y=",y)
//     var x = 10
//     var v = 100
//     x + v
//  )


  def even: (Int => Boolean) = (_ % 2 == 0)
  val even2: (Int => Boolean) = (_ % 2 == 0)

  println(even(9))

  println(even2(19))

}
